package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

@Table(name = "mall_product_stock")
public class MallProductStock {
    @Id
    private Integer id;

    /**
     * 库存组织
     */
    @Column(name = "inventory_organization")
    private String inventoryOrganization;

    /**
     * 物料编码
     */
    @Column(name = "material_code")
    private String materialCode;

    /**
     * 物料名称
     */
    @Column(name = "material_name")
    private String materialName;

    /**
     * 规格
     */
    private String specifications;

    /**
     * 型号
     */
    private String model;

    /**
     * 等级定重
     */
    private String grade;

    /**
     * 单位
     */
    private String unit;

    /**
     * 结存量
     */
    private String stock;

    /**
     * 预留主数量
     */
    @Column(name = "stock_reserved")
    private String stockReserved;

    /**
     * 冻结主数量
     */
    @Column(name = "stock_freeze")
    private String stockFreeze;

    /**
     * 供应商物权结存主数量
     */
    @Column(name = "stock_supplier")
    private String stockSupplier;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取库存组织
     *
     * @return inventory_organization - 库存组织
     */
    public String getInventoryOrganization() {
        return inventoryOrganization;
    }

    /**
     * 设置库存组织
     *
     * @param inventoryOrganization 库存组织
     */
    public void setInventoryOrganization(String inventoryOrganization) {
        this.inventoryOrganization = inventoryOrganization;
    }

    /**
     * 获取物料编码
     *
     * @return material_code - 物料编码
     */
    public String getMaterialCode() {
        return materialCode;
    }

    /**
     * 设置物料编码
     *
     * @param materialCode 物料编码
     */
    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    /**
     * 获取物料名称
     *
     * @return material_name - 物料名称
     */
    public String getMaterialName() {
        return materialName;
    }

    /**
     * 设置物料名称
     *
     * @param materialName 物料名称
     */
    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    /**
     * 获取规格
     *
     * @return specifications - 规格
     */
    public String getSpecifications() {
        return specifications;
    }

    /**
     * 设置规格
     *
     * @param specifications 规格
     */
    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    /**
     * 获取型号
     *
     * @return model - 型号
     */
    public String getModel() {
        return model;
    }

    /**
     * 设置型号
     *
     * @param model 型号
     */
    public void setModel(String model) {
        this.model = model;
    }

    /**
     * 获取等级定重
     *
     * @return grade - 等级定重
     */
    public String getGrade() {
        return grade;
    }

    /**
     * 设置等级定重
     *
     * @param grade 等级定重
     */
    public void setGrade(String grade) {
        this.grade = grade;
    }

    /**
     * 获取单位
     *
     * @return unit - 单位
     */
    public String getUnit() {
        return unit;
    }

    /**
     * 设置单位
     *
     * @param unit 单位
     */
    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getStockReserved() {
        return stockReserved;
    }

    public void setStockReserved(String stockReserved) {
        this.stockReserved = stockReserved;
    }

    public String getStockFreeze() {
        return stockFreeze;
    }

    public void setStockFreeze(String stockFreeze) {
        this.stockFreeze = stockFreeze;
    }

    public String getStockSupplier() {
        return stockSupplier;
    }

    public void setStockSupplier(String stockSupplier) {
        this.stockSupplier = stockSupplier;
    }
}